#include <curl/curl.h>
#include <unistd.h>
#include <libxml/parser.h>
#include "config.h"
#include "draw_statusbar.h"

void init_modules() {
  int index;
  InitFunction funcs[] = INIT_FUNCTIONS;

  for (index = 0; funcs[index]; ++index)
    funcs[index]();

}



int main(int argc, const char *argv[]) {


  curl_global_init(CURL_GLOBAL_ALL);
  xmlInitParser();
  init_modules();
  
  for (;;sleep(UPDATE_TIME)) {
    redraw_status();

  }
  return 0;
}
